package com.cxs.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
  * @Author CXS
  * @Date 2023/11/14 15:23
**/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_order")
public class TOrder implements Serializable {
    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.INPUT)
    private Long orderId;

    /**
     * 订单价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 下单用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 订单状态
     */
    @TableField(value = "status")
    private String status;

    private static final long serialVersionUID = 1L;

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_PRICE = "price";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_STATUS = "status";
}